package com.mycompany.goodsys.core.AppEntity;

public class AppObj{
    private String guid = "";
    private String name = "";
    private String number = "";

    public String GetGuid(){return this.guid;}
    public String GetName(){return this.name;}
    public String GetNumber(){return  this.number;}

    public boolean SetName(String name){
        if(name == null || name == "") {
            return false;
        }
        this.name = name;
        return true;
    }
    public boolean SetNumber(String number){
        if(number == null || number == "") {
            return false;
        }
        this.number = number;
        return true;
    }

    public AppObj Clone(){
          return new AppObj(this.guid,this.name,this.number);
     }

    public AppObj(String name,String number){
        this.guid = java.util.UUID.randomUUID().toString();
        this.name = name;
        this.number = number;
    }

    private AppObj(String guild,String name,String number){
        this.guid = guild;
        this.name = name;
        this.number = number;
    }
}
